package cn.edu.kzjsxy.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 单元信息表
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("units")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="Units对象", description="单元信息表")
public class Units implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "宿管id")
    @TableField(exist = false)
    private String housemasterId;

    @ApiModelProperty(value = "单元ID")
    @TableId(value = "unit_id", type = IdType.ASSIGN_UUID)
    private String unitId;

    @ApiModelProperty(value = "所属楼栋ID")
    @TableField("building_id")
    private String buildingId;

    @ApiModelProperty(value = "所属楼栋名称")
    @TableField(exist = false)
    private String buildingName;

    @ApiModelProperty(value = "单元号")
    @TableField("unit_code")
    private String unitCode;

    @ApiModelProperty(value = "楼层")
    @TableField("floor")
    private Integer floor;

    @ApiModelProperty(value = "公共财产，可能会有多个，使用 #$@# 分割开")
    @TableField("public_property")
    private String publicProperty;
}
